<?php
namespace App;
/**
 * 消费者逻辑
 * @author walkor<walkor@workerman.net>
 */
class inDB
{
    /**
     * 模拟慢任务
     * 数据包格式： {"class":"inDB", "method":"operateData", "args":["v1","v2"]}
     * @return void
     */
    public function operateData($data)
    {
        echo "success\n";
    }
    
    public function read()
    {
        // ..
    }
}